package com.qg.service.impl;

import com.qg.pojo.QgOrder;
import com.qg.service.LocalOrdersService;
import com.qg.service.QgOrderService;
import jdk.nashorn.internal.ir.annotations.Reference;
import org.springframework.stereotype.Component;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Component
public class LocalOrdersServiceImpl  implements LocalOrdersService {
    @Reference
    private QgOrderService qgOrderService;

    @Override
    public List<QgOrder> getOrderInfo(String orderNo) throws Exception {
        Map<String,Object> param=new HashMap<>();
        param.put("orderNo",orderNo);
        List<QgOrder> qgOrderList=qgOrderService.getQgOrderListByMap(param);
        return qgOrderList;
    }
}
